<template>
  <div id="app">
    <!-- <nav></nav> -->
    <keep-alive>
      <!--这里是会被缓存的组件-->
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
  </div>
</template>
<script>
window.onload = function () {
  document.addEventListener('touchstart', function (e) {
    console.log('1', e.touches.length)
    if (e.touches.length > 1) {
      e.preventDefault()
    }
  })
  document.addEventListener('gesturestart', function (e) {
    console.log('2')
    e.preventDefault()
  })
}
</script>

<style lang="less">
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}
.contentTop {
  padding-top: 10px;
  background-color: #f5f5f5;
}
.van-nav-bar__title {
  font-weight: 600;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  font-size: 16px;
  height: 100%;

  overflow: hidden;
}
.nameApply {
  font-size: 16px;
}
.van-cell {
  div {
    font-size: 14px;
  }
}
.van-field--error .van-field__control {
  color: #323233 !important;
  -webkit-text-fill-color: currentColor;
}
::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
nav {
  padding: 40px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
